﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderItemList.aspx.cs"
    Inherits="AlbonWeb.Order.OrderItemList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Order Item List</title>
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Dealer>>New Order</span>
        </div>
        <table width="750" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="2" class="content_title">
                    Order Item List
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td style="width: 30%" align="center">
                    Order REF:<asp:Label class="lbInfo" ID="refNo" runat="server" Text=""></asp:Label>
                </td>
                <td class="td_right">
                    Client Name:<asp:Label class="lbInfo" ID="clientName" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td>
                </td>
                <td align="right">
                    Add New Item:
                    <asp:DropDownList ID="ddlItem" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="addNewItem" class="btnNext" runat="server" Text="Add" OnClick="btnAdd_Click" />
                    <asp:Button ID="btnUpload" runat="server" Text="Upload Previous" />
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td colspan="2">
                    <!--Designed Items-->
                    <asp:Repeater ID="repMain" runat="server">
                        <HeaderTemplate>
                            <table width="90%" cellpadding="0" cellspacing="0" border="1" bordercolor="#AFDA8C"
                                class="tb_list">
                                <tr class="tr_list_head">
                                    <td>
                                        ItemName
                                    </td>
                                    <td>
                                        FT
                                    </td>
                                    <td>
                                        Qty
                                    </td>
                                    <td>
                                        Size
                                    </td>
                                    <td>
                                        Style
                                    </td>
                                    <td>
                                        Cloth
                                    </td>
                                    <td>
                                        Copy
                                    </td>
                                    <td>
                                        Del
                                    </td>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="tr_list_content">
                                <td>
                                    <%#Eval("itemName") %>
                                </td>
                                <td>
                                    <input type="checkbox" <%#Boolean.Parse(Eval("FT").ToString())?"Checked='Checked'":""%>
                                        disabled="disabled" />
                                </td>
                                <td>
                                    <%#Eval("quantity")%>
                                </td>
                                <td>
                                    <a href='/Order/ItemSize.aspx?orderitemid=<%#Eval("ID")%>&itemid=<%#Eval("itemID")%>'>
                                        <img src="/images/grv_edit.gif" alt="" /></a>
                                </td>
                                <td>
                                    <a href='/Order/ItemStyle.aspx?edit=1&orderitemid=<%#Eval("ID")%>&itemid=<%#Eval("itemID")%>'>
                                        <img src="/images/grv_edit.gif" alt="" /></a>
                                </td>
                                <td>
                                    <a href='/Order/ItemCloth.aspx?orderitemid=<%#Eval("ID")%>'>
                                        <img src="/images/grv_edit.gif" alt="" /></a>
                                </td>
                                <td>
                                    <a href='/Order/ItemSize.aspx?copyitemid=<%#Eval("ID")%>&itemid=<%#Eval("itemID")%>''><img src="/images/copy.png" alt="Copy A Item" /></a>
                                </td>
                                <td>
                                    <asp:ImageButton ID="imgDelete" ImageUrl="/images/grv_delete.gif" CommandArgument='<%#Eval("ID")%>'
                                        OnClientClick="return confirm('Are You Sure to Delete This Item?')" runat="server" 
                                         OnClick="imgDelete_Click" />
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <!--Designed Items-->
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td>
                    &nbsp;
                </td>
                <td>
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td colspan="2" align="right">
                    <asp:Label ID="lbmessage" class="" runat="server" Text=""></asp:Label>
                    <asp:Button ID="btnNext" class="btnNext" runat="server" Text="Next" OnClick="btnNext_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
